import service from ".";
const ClassListApi={
    //获取作业列表
    getClassList(PageNo,PageSize){
        return service.post("/api/homework_manage/get-homework-list",{PageNo,PageSize})
    },
    //为了编辑，首先获取单个作业内容
    getClassListOne(Id){
        return service.post("/api/homework_manage/get-homework",{Id})
    },
    //获取作业详情
    getWorkDetail(id,pageNo,pageSize){
        return service.post("/api/homework_manage/getrecordlist",{id,pageNo,pageSize})
    },
    //编辑作业
    editWork(data){
        return service.post("/api/homework_manage/edit-homework",data)
    },
}
export default ClassListApi;